package com.niit.drugsmanager.repository;

import com.niit.drugsmanager.entity.AdministrativeRegion;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;


public interface AdministrativeRegionRepository extends JpaRepository<AdministrativeRegion, Integer> {
    AdministrativeRegion findByCode(Integer code);
    List<AdministrativeRegion> findAllByPcode(Integer pid);
    List<AdministrativeRegion> findAllByLv(Integer lvl);
    AdministrativeRegion findByIdChain(String idChain);

}
